package com;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @author Fang Ruichuan
 * @date 2022-10-05 10:58
 */
@SpringBootTest
public class ClassConstructDemo {
    @Test
    public void test() {
        InterfaceClassConstruct interfaceClassConstruct = ClassConstructDemo::new;
        ClassConstructDemo demo = interfaceClassConstruct.create();
        System.out.println(demo);
    }
}

interface InterfaceClassConstruct {
    ClassConstructDemo create();
}
